package cn.iocoder.yudao.module.erp.controller.admin.secaccount.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP 二级库台账新增/修改 Request VO")
@Data
public class SecAccountSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4116")
    private Long id;

    @Schema(description = "事务类型")
    private String affairs;

    @Schema(description = "出入库单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14156")
    @NotNull(message = "出入库单号不能为空")
    private String affairsId;

    @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14156")
    @NotNull(message = "部门编号不能为空")
    private Long deptId;

    @Schema(description = "来源单位id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14156")
    @NotNull(message = "来源单位id不能为空")
    private Long fromDeptId;

    @Schema(description = "去向单位id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14156")
    @NotNull(message = "去向单位id不能为空")
    private Long toDeptId;


    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4530")
    @NotNull(message = "产品编号不能为空")
    private Long productId;

    @Schema(description = "产品单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "产品单位不能为空")
    private Long productUnit;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品名称不能为空")
    private String productName;

    @Schema(description = "产品单位名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品单位名称不能为空")
    private String productUnitName;
    /**
     * 产品单位编号
     */
    @Schema(description = "产品单位编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "产品单位编号不能为空")
    private Long productUnitId;
    /**
     * 产品分类编号
     */
    @Schema(description = "产品分类编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "产品分类编号不能为空")
    private Long productCategoryId;
    /**
     * 产品分类名称
     */
    @Schema(description = "产品分类名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品分类名称不能为空")
    private String productCategoryName;

    @Schema(description = "产品规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "产品规格不能为空")
    private Long productStandards;

    @Schema(description = "销售价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "30278")
    @NotNull(message = "销售价格不能为空")
    private BigDecimal productPrice;

    @Schema(description = "采购价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "30278")
    @NotNull(message = "采购价格不能为空")
    private BigDecimal productPurchasePrice;

    @Schema(description = "产品批次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品批次不能为空")
    private String productBatch;

    @Schema(description = "入库批次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "入库批次不能为空")
    private String inboundBatch;

    @Schema(description = "有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期不能为空")
    private LocalDateTime productValidityDate;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "31289")
    @NotNull(message = "数量不能为空")
    private BigDecimal count;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "流程实例的编号", example = "10663")
    private String processInstanceId;

}